package com.cl.entity;

import javax.persistence.*;

import org.hibernate.annotations.Type;

import com.cl.entity.common.BaseEntity;
import com.cl.entity.common.DataEntity;

import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the THESIS database table.
 * 
 */
@Entity
@Table(name="THESIS")
public class Thesis extends DataEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="THESIS_ID_GENERATOR", sequenceName="THESIS_SEQ",allocationSize=1,initialValue=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="THESIS_ID_GENERATOR")
	@Column(name="THESIS_ID")
	private Long thesisId;

	private String author;

	private String authormode;

	@Column(name="CATALOG_ID")
	private BigDecimal catalogId;

	@Column(name="CHAPTER_NUM")
	private String chapterNum;

	@Temporal(TemporalType.DATE)
	@Column(name="COLLATE_C_TIME")
	private Date collateCTime;

	@Column(name="COLLATE_MAN")
	private String collateMan;

	@Temporal(TemporalType.DATE)
	@Column(name="COLLATE_TIME")
	private Date collateTime;

	@Column(name="CONFIRM_FLAG")
	private String confirmFlag;

	@Column(name="CONFIRM_MAN")
	private String confirmMan;

	@Temporal(TemporalType.DATE)
	@Column(name="CONFIRM_TIME")
	private Date confirmTime;

	@Lob    
	@Type(type = "org.hibernate.type.StringClobType")
    @Column(name="CONTENT", columnDefinition="CLOB", nullable=true)
	@Basic(fetch = FetchType.EAGER)
	private String content;

	private String era;

	private String firstauthor;

	@Temporal(TemporalType.DATE)
	@Column(name="HANDLE_C_TIME")
	private Date handleCTime;

	@Column(name="HANDLE_MODE")
	private BigDecimal handleMode;

	@Temporal(TemporalType.DATE)
	@Column(name="HANDLE_TIME")
	private Date handleTime;

	@Column(name="HANDLER")
	private String thandler;

	private String haverel;

	private BigDecimal iscommend;

	private String isdel;

	@Column(name="LANGUAGE")
	private String language;

	private String notes;

	private String notes2;

	@Column(name="PAGE_FROM")
	private BigDecimal pageFrom;

	@Column(name="PAGE_NUM")
	private BigDecimal pageNum;

	@Column(name="PAGE_TYPE")
	private String pageType;

	@Column(name="PATH")
	private String path;

	@Column(name="PDF_FILE")
	private String pdfFile;

	private String pdfflag;

	@Column(name="PDFIDX_FILE")
	private String pdfidxFile;

	private String provider;

	@Column(name="PUBLISH_DATE")
	private String publishDate;

	@Column(name="PUBLISH_HOUSE")
	private String publishHouse;

	@Temporal(TemporalType.DATE)
	@Column(name="REGISTER_C_TIME")
	private Date registerCTime;

	@Column(name="REGISTER_MAN")
	private String registerMan;

	@Temporal(TemporalType.DATE)
	@Column(name="REGISTER_TIME")
	private Date registerTime;

	private String relinfo;

	private BigDecimal repeatid;

	@Column(name="RETURN_RECEIVER")
	private String returnReceiver;

	@Temporal(TemporalType.DATE)
	@Column(name="RETURN_TIME")
	private Date returnTime;

	@Lob    
	@Type(type = "org.hibernate.type.StringClobType")
    @Column(name="SOURCE_REM", columnDefinition="CLOB", nullable=true)
	@Basic(fetch = FetchType.EAGER)
	private String sourceRem;

	@Column(name="THESIS_CLASS")
	private BigDecimal thesisClass;

	@Column(name="THESIS_LABEL")
	private String thesisLabel;

	@Column(name="THESIS_NAME")
	private String thesisName;

	@Column(name="THESIS_SORT")
	private String thesisSort;

	@Column(name="THESIS_SOURCE")
	private String thesisSource;

	@Column(name="THESIS_TYPE")
	private BigDecimal thesisType;

	@Column(name="TRANS_FLAG")
	private String transFlag;

	private String translator;

	@Column(name="WORD_NUM")
	private BigDecimal wordNum;

	public Thesis() {
		super();
	}

	public Long getThesisId() {
		return this.thesisId;
	}

	public void setThesisId(Long thesisId) {
		this.thesisId = thesisId;
	}

	public String getAuthor() {
		return this.author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getAuthormode() {
		return this.authormode;
	}

	public void setAuthormode(String authormode) {
		this.authormode = authormode;
	}

	public BigDecimal getCatalogId() {
		return this.catalogId;
	}

	public void setCatalogId(BigDecimal catalogId) {
		this.catalogId = catalogId;
	}

	public String getChapterNum() {
		return this.chapterNum;
	}

	public void setChapterNum(String chapterNum) {
		this.chapterNum = chapterNum;
	}

	public Date getCollateCTime() {
		return this.collateCTime;
	}

	public void setCollateCTime(Date collateCTime) {
		this.collateCTime = collateCTime;
	}

	public String getCollateMan() {
		return this.collateMan;
	}

	public void setCollateMan(String collateMan) {
		this.collateMan = collateMan;
	}

	public Date getCollateTime() {
		return this.collateTime;
	}

	public void setCollateTime(Date collateTime) {
		this.collateTime = collateTime;
	}

	public String getConfirmFlag() {
		return this.confirmFlag;
	}

	public void setConfirmFlag(String confirmFlag) {
		this.confirmFlag = confirmFlag;
	}

	public String getConfirmMan() {
		return this.confirmMan;
	}

	public void setConfirmMan(String confirmMan) {
		this.confirmMan = confirmMan;
	}

	public Date getConfirmTime() {
		return this.confirmTime;
	}

	public void setConfirmTime(Date confirmTime) {
		this.confirmTime = confirmTime;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getEra() {
		return this.era;
	}

	public void setEra(String era) {
		this.era = era;
	}

	public String getFirstauthor() {
		return this.firstauthor;
	}

	public void setFirstauthor(String firstauthor) {
		this.firstauthor = firstauthor;
	}

	public Date getHandleCTime() {
		return this.handleCTime;
	}

	public void setHandleCTime(Date handleCTime) {
		this.handleCTime = handleCTime;
	}

	public BigDecimal getHandleMode() {
		return this.handleMode;
	}

	public void setHandleMode(BigDecimal handleMode) {
		this.handleMode = handleMode;
	}

	public Date getHandleTime() {
		return this.handleTime;
	}

	public void setHandleTime(Date handleTime) {
		this.handleTime = handleTime;
	}

	public String getThandler() {
		return this.thandler;
	}

	public void setThandler(String handler) {
		this.thandler = handler;
	}

	public String getHaverel() {
		return this.haverel;
	}

	public void setHaverel(String haverel) {
		this.haverel = haverel;
	}

	public BigDecimal getIscommend() {
		return this.iscommend;
	}

	public void setIscommend(BigDecimal iscommend) {
		this.iscommend = iscommend;
	}

	public String getIsdel() {
		return this.isdel;
	}

	public void setIsdel(String isdel) {
		this.isdel = isdel;
	}

	public String getLanguage() {
		return this.language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	public String getNotes() {
		return this.notes;
	}

	public void setNotes(String notes) {
		this.notes = notes;
	}

	public String getNotes2() {
		return this.notes2;
	}

	public void setNotes2(String notes2) {
		this.notes2 = notes2;
	}

	public BigDecimal getPageFrom() {
		return this.pageFrom;
	}

	public void setPageFrom(BigDecimal pageFrom) {
		this.pageFrom = pageFrom;
	}

	public BigDecimal getPageNum() {
		return this.pageNum;
	}

	public void setPageNum(BigDecimal pageNum) {
		this.pageNum = pageNum;
	}

	public String getPageType() {
		return this.pageType;
	}

	public void setPageType(String pageType) {
		this.pageType = pageType;
	}

	public String getPath() {
		return this.path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getPdfFile() {
		return this.pdfFile;
	}

	public void setPdfFile(String pdfFile) {
		this.pdfFile = pdfFile;
	}

	public String getPdfflag() {
		return this.pdfflag;
	}

	public void setPdfflag(String pdfflag) {
		this.pdfflag = pdfflag;
	}

	public String getPdfidxFile() {
		return this.pdfidxFile;
	}

	public void setPdfidxFile(String pdfidxFile) {
		this.pdfidxFile = pdfidxFile;
	}

	public String getProvider() {
		return this.provider;
	}

	public void setProvider(String provider) {
		this.provider = provider;
	}

	public String getPublishDate() {
		return this.publishDate;
	}

	public void setPublishDate(String publishDate) {
		this.publishDate = publishDate;
	}

	public String getPublishHouse() {
		return this.publishHouse;
	}

	public void setPublishHouse(String publishHouse) {
		this.publishHouse = publishHouse;
	}

	public Date getRegisterCTime() {
		return this.registerCTime;
	}

	public void setRegisterCTime(Date registerCTime) {
		this.registerCTime = registerCTime;
	}

	public String getRegisterMan() {
		return this.registerMan;
	}

	public void setRegisterMan(String registerMan) {
		this.registerMan = registerMan;
	}

	public Date getRegisterTime() {
		return this.registerTime;
	}

	public void setRegisterTime(Date registerTime) {
		this.registerTime = registerTime;
	}

	public String getRelinfo() {
		return this.relinfo;
	}

	public void setRelinfo(String relinfo) {
		this.relinfo = relinfo;
	}

	public BigDecimal getRepeatid() {
		return this.repeatid;
	}

	public void setRepeatid(BigDecimal repeatid) {
		this.repeatid = repeatid;
	}

	public String getReturnReceiver() {
		return this.returnReceiver;
	}

	public void setReturnReceiver(String returnReceiver) {
		this.returnReceiver = returnReceiver;
	}

	public Date getReturnTime() {
		return this.returnTime;
	}

	public void setReturnTime(Date returnTime) {
		this.returnTime = returnTime;
	}

	public String getSourceRem() {
		return this.sourceRem;
	}

	public void setSourceRem(String sourceRem) {
		this.sourceRem = sourceRem;
	}

	public BigDecimal getThesisClass() {
		return this.thesisClass;
	}

	public void setThesisClass(BigDecimal thesisClass) {
		this.thesisClass = thesisClass;
	}

	public String getThesisLabel() {
		return this.thesisLabel;
	}

	public void setThesisLabel(String thesisLabel) {
		this.thesisLabel = thesisLabel;
	}

	public String getThesisName() {
		return this.thesisName;
	}

	public void setThesisName(String thesisName) {
		this.thesisName = thesisName;
	}

	public String getThesisSort() {
		return this.thesisSort;
	}

	public void setThesisSort(String thesisSort) {
		this.thesisSort = thesisSort;
	}

	public String getThesisSource() {
		return this.thesisSource;
	}

	public void setThesisSource(String thesisSource) {
		this.thesisSource = thesisSource;
	}

	public BigDecimal getThesisType() {
		return this.thesisType;
	}

	public void setThesisType(BigDecimal thesisType) {
		this.thesisType = thesisType;
	}

	public String getTransFlag() {
		return this.transFlag;
	}

	public void setTransFlag(String transFlag) {
		this.transFlag = transFlag;
	}

	public String getTranslator() {
		return this.translator;
	}

	public void setTranslator(String translator) {
		this.translator = translator;
	}

	public BigDecimal getWordNum() {
		return this.wordNum;
	}

	public void setWordNum(BigDecimal wordNum) {
		this.wordNum = wordNum;
	}

	@Override
	public Long getPrimaryId() {
		return this.thesisId;
	}



}